import { mnetMsg } from "../typeDef";
import { mnetForwardSenderInterface } from "./mnetForwardSenderInterface";

export class mnetForwardSender {
    constructor(sender:mnetForwardSenderInterface) {
        this.mSender = sender 
    }

    //Publish a notification
    notify(readerName:string,msgName:string,msg:mnetMsg):void {
         this.mSender.notify(readerName,msgName,msg)
    }

    //Publish a request
    async request(readerName:string,msgName:string,msg:mnetMsg):Promise<mnetMsg> {
        return await this.mSender.request(readerName,msgName,msg)
    }

    private mSender:mnetForwardSenderInterface
}

 